/*
 * @Description: 客服电话类型组件
 * @Author: ziwei.ma
 * @Date: 2019-06-26 16:29:18
 * @Last Modified by: ziwei.ma
 * @Last Modified time: 2019-06-27 16:57:18
 */
<template>
  <item-base
    :option="option"
    @click.native="jumpToTelephone"
  >
    <div slot="item-right">{{servicePhone}}</div>
  </item-base>
</template>

<script>
import ItemBase from './ItemBase'
export default {
  components: {
    'item-base': ItemBase
  },
  props: {
    option: ''
  },
  data() {
    return {
      servicePhone: window.SERVICE_TEL
    }
  },
  methods: {
    // 跳转至拨号页面
    jumpToTelephone() {
      window.location.assign('tel:' + this.servicePhone)
    }
  }
}
</script>

<style scoped>
.list-icon {
  font-size: 40px;
  margin-right: 31px;
}
</style>
